package dto;

public class AnswerDTO {
	private int _id;
	private String _content;
	private int _titleID;
	
	public AnswerDTO() {
		this._id = 0;
		this._content = "";
	}
	
	public AnswerDTO(AnswerDTO answer) {
		this._id = answer._id;
		this._content = answer._content;
		this._titleID = answer._titleID;
	}
	
	public AnswerDTO(int id, String content, int titleID) {
		this._id = id;
		this._content = content;
		this._titleID = titleID;
	}
	
	public void update(AnswerDTO answer) {
		this._content = answer._content;
		this._titleID = answer._titleID;
	}
	
	public void setID(int id) {
		this._id = id;
	}
	public void setContent(String content) {
		this._content = content;
	}
	public void setTitleID(int titleID) {
		this._titleID = titleID;
	}
	
	public int getID() {
		return this._id;
	}
	public String getContent() {
		return this._content;
	}
	public int getTitleID() {
		return this._titleID;
	}
}
